package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      住户迁入迁出历史记录实体类
 * </desc>
 * @createDate 2017/12/25
 */
@ItlTables("user_stay_in_history")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AppUserStayInHistoryPO extends BasePO implements Serializable{
    //用户Id
    @ItlField(value = "user_id")
    private String userId;

    //项目Id
    @ItlField(value = "project_id")
    private String projectId;

    //楼栋Id
    @ItlField(value = "build_id")
    private String buildId;

    //单元Id
    @ItlField(value = "unit_id")
    private String unitId;

    //房间Id
    @ItlField(value = "room_id")
    private String roomId;

    //房间编号
    @ItlField(value = "room_num")
    private String roomNum;

    //入住历史操作类型：2迁入 3迁出
    @ItlField(value = "oper_type")
    private Integer operType;

    public AppUserStayInHistoryPO(String userId, String projectId, String buildId, String unitId, String roomId, String roomNum, Integer operType) {
        this.userId = userId;
        this.projectId = projectId;
        this.buildId = buildId;
        this.unitId = unitId;
        this.roomId = roomId;
        this.roomNum = roomNum;
        this.operType = operType;
    }
}
